import request from './request.js';
import { https } from '../utils/https.js';
export function getCode(success, fail) {
  uni.login({
     provider: 'weixin',
    success: res => {
      success(res)
    },
    fail: res => {
      fail(res)
    }
  })
}
export function sendCode(code) {
  return request({
    url: https.sendCode,
    data: {
      code
    },
    method:'POST'
  })
}